package com.gtw.modules.dao;

import com.gtw.modules.entity.TbDistrict;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/** 区域
 * @author wuye
 */
@Mapper
@Repository
public interface TbDistrictDao {

    int deleteByPrimaryKey(Integer districtid);

    int insert(TbDistrict record);

    int insertSelective(TbDistrict record);

    TbDistrict selectByPrimaryKey(Integer districtid);

    int updateByPrimaryKeySelective(TbDistrict record);

    int updateByPrimaryKey(TbDistrict record);

    /**
     * 根据城市ID查询区域
     * @param cityid
     * @return
     */
    List<TbDistrict> findByCityId(int cityid);
}